import { atomWithStorage } from 'jotai/utils'
import { atom } from 'jotai'
import type { ISearchInput } from '../../../shared/types'

export const questionAtom = atomWithStorage<ISearchInput | null>('question', null)
export const answerAtom = atom<string[]>([])
export const selectedVersionAtom = atom<number>(0)
